﻿Public Partial Class Cwgl_CancelAuditing_Grid
    Inherits Mysoft.Map.Application.Security.AppPage

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not Request.Form("txtVouchGuidLst") Is Nothing AndAlso Request.Form("txtVouchGuidLst") <> "" Then
            appGrid.CustomFilter = " PZGUID IN (select pzguid from p_CwjkPzVoucher b where  b.voucherguid in (" & IIf(Request.Form("txtVouchGuidLst").ToString.IndexOf("'") <> -1, Request.Form("txtVouchGuidLst").ToString, "'" & Request.Form("txtVouchGuidLst").ToString & "'") & ")) and voucherguid not in (" & IIf(Request.Form("txtVouchGuidLst").ToString.IndexOf("'") <> -1, Request.Form("txtVouchGuidLst").ToString, "'" & Request.Form("txtVouchGuidLst").ToString & "'") & ")"
        Else
            appGrid.CustomFilter = "1=2"
        End If
    End Sub

End Class